<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
 function font(){
   return  $arr = array('Arial,Helvetica,_sans', 'Verdana,Geneva,_sans','Lucida Sans Unicode,Lucida Grande,_sans', 'Times New Roman,Times,_serif');
 }
 function load_money_today(){
    $CI = & get_instance();
    $CI->load->model('customer/customer_model');
    return $CI->customer_model->load_money_today();
 }
 
 function load_money_yesterday(){
    $CI = & get_instance();
    $CI->load->model('customer/customer_model');
    return $CI->customer_model->load_money_by_day(date("Y-m-d",time() - 86400));    
 }
 
 function timelife(){
    $date_1 = strtotime(date("m/d/Y"));
    $date_2 = strtotime("02/10/2013");
    $date_range = $date_2 - $date_1;
     $date_range = ($date_range > 0) ? $date_range : 0;
    return $date_range/86400; 
 }
 

 
?>
